﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LeEdu.MODEL
{
    [DisplayName("购买课程表")]
    public class Order
    {
        [DisplayName("订单主键")]
        [Key]
        public int OID { get; set; }

        [DisplayName("订单名称")]
        public string Oname { get; set; }
        [DisplayName("订单号")]
        public string Onum { get; set; }
        [DisplayName("交易号")]
        public string OtradeNum { get; set; }
        [DisplayName("交易状态")]
        public string OtradeState { get; set; }
        [DisplayName("交易金额")]
        public decimal Oprice { get; set; }
        [DisplayName("交易虚拟币")]
        public decimal Ovirtual { get; set; }
        [DisplayName("现金交易")]
        public decimal Omoney { get; set; }
        [DisplayName("订单创建时间")]
        public string OcreateDate { get; set; }
        [DisplayName("交易时间")]
        public string OpayDate { get; set; }
        [DisplayName("用户外键")]
        public Nullable<int> UserID { get; set; }
        public virtual UserInfo UserInfo { set; get; }
        [DisplayName("课程/班级/虚拟币交易标识")]
        public Nullable<int> CourseID { get; set; }
        [DisplayName("交易类型")]
        public string Otype { get; set; }
    }
}
